package week9;

import static java.lang.System.out;

class Some2 {
    static {
        out.println("[执行静态区块]");
    }
}

public class SomeDemo2 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class clz = Class.forName("week9.Some2", false,
                SomeDemo2.class.getClassLoader());
        out.println("已载入 Some2.class ");
        Some2 s;
        out.println("声明 Some 參考名称");
        s = new Some2();
        out.println("生成 Some 实例");
    }
}